from rest_framework import serializers
from .models import Cate,Carousel,Picture,Goods,User,UserToken


class UserTokenSerializers(serializers.ModelSerializer):
    class Meta:
        model = UserToken
        fields = '__all__'

class CateSerializers(serializers.ModelSerializer):
    class Meta:
        model = Cate
        fields = '__all__'


class CarouseleSerializers(serializers.ModelSerializer):
    class Meta:
        model = Carousel
        fields = '__all__'


class PictureSerializers(serializers.ModelSerializer):
    class Meta:
        model = Picture
        fields = '__all__'


class GoodsSerializers(serializers.ModelSerializer):
    class Meta:
        model = Goods
        fields = "__all__"


class UserSerializers(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = "__all__"